/**
 * 
 */
package br.edu.ufcg.embedded.util;

import java.util.Collection;
import java.util.Iterator;

/**
 * @author daniel
 *
 */
public class Util<E> 
{
	public String getStringfrom(Collection<E> collection) {
		
		StringBuilder sb = new StringBuilder();
		
		Iterator<E> it = collection.iterator();
		
		sb.append( it.next() );
		
		while ( it.hasNext() )
		{
			sb.append(",");
			sb.append(it.next());
		}
		
		return sb.toString();
	}
}
